<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@ page import="zozopo.operations.comm.*" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML>
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>更换仓库</title>

  </head>
  <style>
	<!--
	table {
	table-layout: fixed;
	word-wrap:break-word;
	}
	td{
		
		word-break:break-all;
	}
	
	BODY {
	PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; FONT-FAMILY: arial,san serif
}
	//-->
</style>
  <body>
  
  <table width="100%"  border="0" cellpadding="0" cellspacing="0" height="100%">
  	<tr>
  		<td valign="top">
  			<jsp:include page="/background/operator/head.jsp"></jsp:include>
  		</td>
  	</tr>
  	<tr>
  		<td valign="top">
  			<table width="100%"  border="0" cellpadding="0" cellspacing="0">
  
 		<tr>
    	<td width="270" align="center">
    		
    	</td>
    	<td width="100%">
    		
    		
    		
    	</td>
    </tr>
    
    <tr>
    	<td valign="top">
     		<div>
     		
     		</div>
		  	<jsp:include page="/background/operator/left.jsp"></jsp:include>
				 
				 
				
     	</td>
     	
     	
     	<td valign="top" >
     <table border="0" cellpadding="0" cellspacing="0" >
    	 <tr>
     		<td>
     	
     	</td>
     		</tr>
 <tr>
     		<td>
<form action="warehouse/addchangewarehouse_warehouse.action" method="post" accept-charset="UTF-8" id="addchangewarehouse_warehouseForm" name="addchangewarehouse_warehouseForm"> 
				<s:token />
     <table border="0" cellpadding="0" cellspacing="0"  width="100%">
    	 <tr>
     		<td width="100%">
     	<table width="100%" border="0" cellpadding="0" bgcolor="#e5f3ff" cellspacing="0" style= "border:1px solid #ffffff; border-top-color:#6cb1f1;">
     		
     		<tr>
     			<td><a href="<%=basePath %>warehouse/managechangewarehouse_warehouse.action">更换仓库管理</a>  - 更换仓库
     			
     			<input type="button" value="查看谁有权限" 
     				onclick="javascript:openUrlForDialog('selectoperatorlimitedAction_background.action?limitedCode=<s:property value="limitedcode"/>')"/>
     			</td>
     		</tr>
     	</table>
     	</td>
     		</tr>
 		<tr>
     		<td>
     			<FONT color="red"><s:property value="operationResult"/></FONT>
     			<s:fielderror id="errormessage" />
     			<br/>
     			
				<table border="0" cellpadding="0"  cellspacing="0" width="100%"  style= "border:1px solid #ffffff;" class="bottomline">
					
					
					<tr>
					
						<td>仓库:</td>
						<td>
						
						<input type="text" id="warehouseinfo" name="warehouseinfo" size="40" maxlength="32"/>
						
						<input type="hidden" id="warehouseid_changewarehouserecord" name="warehouseid_changewarehouserecord" size="20" maxlength="32"/>
						<input type="hidden" id="warehousename_changewarehouserecord" name="warehousename_changewarehouserecord" size="20" maxlength="32"/>
						
						
						
						</td>
						<td>
						<input type="button" value="选择仓库" onclick="javascript:openUrlForDialog('insertwarehouseinfo_warehouse.action'); "/>
						
						
						</td>
						<td></td>
					</tr>
					
					<tr>
					
						<td>目标仓库:</td>
						<td>
						
						<input type="text" id="targetwarehouseinfo" name="targetwarehouseinfo" size="40" maxlength="32"/>
						
						<input type="hidden" id="targetwarehouseid_changewarehouserecord" name="targetwarehouseid_changewarehouserecord" size="20" maxlength="32"/>
						<input type="hidden" id="targetwarehousename_changewarehouserecord" name="targetwarehousename_changewarehouserecord" size="20" maxlength="32"/>
						
						
						
						</td>
						<td>
						<input type="button" value="选择仓库" onclick="javascript:insertTargetWarehouse(window.showModalDialog('insertwarehouseinfo_warehouse.action','son','DialogWidth:800px;DialogHeight:600px;')); "/>
						
						
						</td>
						<td></td>
					</tr>
					
					<tr>
					
						<td>商品:</td>
						<td>
						<input type="text" id="goodsinfo" name="goodsinfo" size="40" maxlength="32"/>
						
						<input type="hidden" id="goodsid_changewarehouserecord" name="goodsid_changewarehouserecord" size="20" maxlength="32"/>
						<input type="hidden" id="goodsname_changewarehouserecord" name="goodsname_changewarehouserecord" size="20" maxlength="32"/>
						
						</td>
						<td><input type="button" value="选择商品" onclick="javascript:openUrlForDialog('insertgoodsinfo_warehouse.action'); "/>
						
						</td>
						<td></td>
					</tr>
					
					<tr>
					
						<td>数量:</td>
						<td><input type="text" id="number_changewarehouserecord" name="number_changewarehouserecord" size="10" maxlength="32"/></td>
						<td></td>
						<td></td>
					</tr>
					
					<tr>
						<td>描述/备注:</td>
						<td><textarea id="remark_changewarehouserecord" name="remark_changewarehouserecord" ></textarea></td>
						<td></td>
						<td></td>
					</tr>
					

				</table>
			

	</td>
     		</tr>
     		 <tr>
     		<td>
     			<button type="submit">添加</button>
		
     	</td>
     	</tr>
     	
     	
     	
     	</table>
     	</form>
	</td>
     		</tr>
     		 <tr>
     		<td>
     		
		
     	</td>
     	</tr>
     	
     	
     	
     	</table>
	</td>
</tr>

</table>
  		</td>
  	</tr>
  	<tr>
  		<td valign="bottom">
  			<jsp:include page="/background/operator/tail.jsp"></jsp:include>
  		
  		</td>
  	</tr>
  
  </table>
  </body>
  <script type="text/javascript">
  
  function insertGoods(goodsinfo){
	  
		//alert(goodsname);
		
		if(goodsinfo != undefined){
			addchangewarehouse_warehouseForm["goodsinfo"].value=goodsinfo;

			var index = goodsinfo.indexOf(",");
			var goodid = goodsinfo.substring(0,index);
			var goodname = goodsinfo.substring(index+1,goodsinfo.length);
			//alert(goodid);
			addchangewarehouse_warehouseForm["goodsid_changewarehouserecord"].value=goodid;
			addchangewarehouse_warehouseForm["goodsname_changewarehouserecord"].value=goodname;
		}
		
		// opener.
		$("#dialog").dialog('close');
	};

	function insertWarehouse(warehouseinfo){
		  
		//alert(goodsname);
		
		if(warehouseinfo != undefined){
			addchangewarehouse_warehouseForm["warehouseinfo"].value=warehouseinfo;

			var index = warehouseinfo.indexOf(",");
			var warehouseid = warehouseinfo.substring(0,index);
			var warehousename = warehouseinfo.substring(index+1,warehouseinfo.length);
			//alert(goodname);
			addchangewarehouse_warehouseForm["warehouseid_changewarehouserecord"].value=warehouseid;
			addchangewarehouse_warehouseForm["warehousename_changewarehouserecord"].value=warehousename;
		}
		
		// opener.
		$("#dialog").dialog('close');
		 
	};

	function insertTargetWarehouse(warehouseinfo){
		  
		//alert(goodsname);
		
		if(warehouseinfo != undefined){
			addchangewarehouse_warehouseForm["targetwarehouseinfo"].value=warehouseinfo;

			var index = warehouseinfo.indexOf(",");
			var warehouseid = warehouseinfo.substring(0,index);
			var warehousename = warehouseinfo.substring(index+1,warehouseinfo.length);
			//alert(goodname);
			addchangewarehouse_warehouseForm["targetwarehouseid_changewarehouserecord"].value=warehouseid;
			addchangewarehouse_warehouseForm["targetwarehousename_changewarehouserecord"].value=warehousename;
		}
		$("#dialog").dialog('close');
		// opener.
		 
	};

	
  
  </script>
</html>
